package Lock;

public class Demo {
    public static void main(String[] args) {
        Ticket task = new Ticket();

        Thread t1 = new Thread(task);
        Thread t2 = new Thread(task);

        t1.setName("窗口1");
        t2.setName("窗口2");

        t1.start();
        t2.start();


    }
}
